#include <stdio.h>
#include <iostream>
#include "Poco/Thread.h"
#include "Poco/Runnable.h"
#include "Poco/ThreadTarget.h"
//#include "Poco/RunnableAdapter.h"

using Poco::Thread;
using Poco::Runnable;
using Poco::ThreadTarget;
//using Poco::RunnableAdapter;

class MyRunnable:public Runnable
{
	public:
		void run() 
		{
			while(true)
			{
		        	std::cout<<"hello.\r\n"<<std::endl;
			        Thread::sleep(3000);
			}
		}; 
		/*         void run() */
		/*         {*/
		/*                 printf("hello MyRunnable");*/
		/*         }*/
};

int main()
{
        Thread t1("t1");
        MyRunnable myRun;
        t1.start(myRun);
        t1.join();
	std::cin.get();
	return 0;
}
